package com.hube.platform.tenant.exception;

/**
 * @author : Aaron
 * @date : 2022/6/10
 */
public enum DefaultErrorObject implements IError {
    OK(200, ""),
    OBJECT_NOT_NULL(4001, "{0}不能为空"),
    TENANT_SCOPE_FORBIDDEN(4003, "无此租户操作权限"),
    CONTENT_NOT_FOUND(4004, "{0}不存在"),
    SYSTEM_SERVER_ERROR(5000, "系统错误"),
    ;

    private int code;
    private String message;

    DefaultErrorObject(int code, String message) {
        this.message = message;
        this.code = code;
    }

    @Override
    public int code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
